<?php
require_once('LinkFetcher.php');

$url = $_SERVER['argv'][1];

$f = new LinkFetcher();
if($f->setUrl($url)){
	echo 'Service: '.$f->getService()."\n";
	echo 'ID: '.$f->getContentInformation()."\n";
	echo 'T: '.$f->getTitle()."\n";
	echo 'D: '.$f->getDescription()."\n";
	echo 'Images: ';
	print_r($f->getPreviewImages());
}
else{
	echo "error, url invalid\n";
}